package com.woniu.pojo;

import com.alibaba.fastjson.annotation.JSONField;
import com.baomidou.mybatisplus.annotation.*;
import java.util.Date;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * vip表
 * </p>
 *
 * @author xiaolin
 * @since 2023-04-13
 */
@Data
@TableName("wnsys_vip")
@ApiModel(value = "Vip对象", description = "vip表")
public class Vip {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("用户名")
    private String name;

    @ApiModelProperty("用户状态")
    private Integer status;

    @ApiModelProperty("开通时间")
    private Date openingTime;

    @ApiModelProperty("到期时间")
    @JSONField(format = "yyyy-MM-dd HH:mm:ss")
    private Date expirationTime;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private Date createTime;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
}
